\hypertarget{game_8h}{
\section{game.h File Reference}
\label{game_8h}\index{game.h@{game.h}}
}
{\tt \#include $<$SDL/SDL.h$>$}\par
{\tt \#include \char`\"{}entity.h\char`\"{}}\par
{\tt \#include \char`\"{}envcomp.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{structGame}{Game}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
\hyperlink{structGame}{Game} $\ast$ \hyperlink{game_8h_10bdb1932160f0ab63682ea8d979c5f2}{create\_\-game} (void)
\item 
int \hyperlink{game_8h_16f4b8728d61c87aa84171b01265df25}{game\_\-main\_\-loop} (\hyperlink{structGame}{Game} $\ast$g)
\item 
int \hyperlink{game_8h_6c39193e16008d59e4c4d0deb3ef02a9}{destroy\_\-game} (\hyperlink{structGame}{Game} $\ast$g)
\item 
int \hyperlink{game_8h_ce2c5d2f3bfcce6b303df6ae891d9b5b}{quit\_\-game} (\hyperlink{structGame}{Game} $\ast$)
\item 
int \hyperlink{game_8h_bafdc0ac9fb498b1c6301230370509ec}{render\_\-game} (\hyperlink{structGame}{Game} $\ast$g)
\end{CompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\hypertarget{game_8h_10bdb1932160f0ab63682ea8d979c5f2}{
\index{game.h@{game.h}!create\_\-game@{create\_\-game}}
\index{create\_\-game@{create\_\-game}!game.h@{game.h}}
\subsubsection[{create\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Game}$\ast$ create\_\-game (void)}}
\label{game_8h_10bdb1932160f0ab63682ea8d979c5f2}


Cria game \hypertarget{game_8h_6c39193e16008d59e4c4d0deb3ef02a9}{
\index{game.h@{game.h}!destroy\_\-game@{destroy\_\-game}}
\index{destroy\_\-game@{destroy\_\-game}!game.h@{game.h}}
\subsubsection[{destroy\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}int destroy\_\-game ({\bf Game} $\ast$ {\em g})}}
\label{game_8h_6c39193e16008d59e4c4d0deb3ef02a9}


Destroy \hyperlink{structGame}{Game} $\ast$game \hypertarget{game_8h_16f4b8728d61c87aa84171b01265df25}{
\index{game.h@{game.h}!game\_\-main\_\-loop@{game\_\-main\_\-loop}}
\index{game\_\-main\_\-loop@{game\_\-main\_\-loop}!game.h@{game.h}}
\subsubsection[{game\_\-main\_\-loop}]{\setlength{\rightskip}{0pt plus 5cm}int game\_\-main\_\-loop ({\bf Game} $\ast$ {\em g})}}
\label{game_8h_16f4b8728d61c87aa84171b01265df25}


Loop principal \hypertarget{game_8h_ce2c5d2f3bfcce6b303df6ae891d9b5b}{
\index{game.h@{game.h}!quit\_\-game@{quit\_\-game}}
\index{quit\_\-game@{quit\_\-game}!game.h@{game.h}}
\subsubsection[{quit\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}int quit\_\-game ({\bf Game} $\ast$)}}
\label{game_8h_ce2c5d2f3bfcce6b303df6ae891d9b5b}


Para jogo chama destroy\_\-game e sai \hypertarget{game_8h_bafdc0ac9fb498b1c6301230370509ec}{
\index{game.h@{game.h}!render\_\-game@{render\_\-game}}
\index{render\_\-game@{render\_\-game}!game.h@{game.h}}
\subsubsection[{render\_\-game}]{\setlength{\rightskip}{0pt plus 5cm}int render\_\-game ({\bf Game} $\ast$ {\em g})}}
\label{game_8h_bafdc0ac9fb498b1c6301230370509ec}


Renderiza o game 